package com.v2.k24;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 测试Aop3  注解
 */
public class Test {

	public static void main(String[] args) {

//		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
		ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-k24.xml");

		UserService userService = (UserService) applicationContext.getBean("userService");

		userService.add();
	}

}
